package com.hongkang.springtrains.web.exception;

import org.springframework.http.HttpStatus;

/**
 * 未发现发现用户异常
 */
public class UserNotFoundException extends RuntimeException {

    private Long userID = 100L;
    private HttpStatus status;

    public UserNotFoundException(String message) {
        super(message);
    }


    public Long getUserID() {
        return userID;
    }

    public void setUserID(Long userID) {
        this.userID = userID;
    }

    public HttpStatus getStatus() {
        return status;
    }

    public void setStatus(HttpStatus status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UserNotFoundException{" +
                "userID=" + userID +
                ", status=" + status +
                '}';
    }
}
